include $(top_srcdir)/src/common.mk

AUTOMAKE_OPTIONS = gnu

noinst_HEADERS =	test_ipset.h IPAbstractSet.h IPBloomSet.h IPRadixTree.h \
			radix_tree.hpp radix_tree_it.hpp radix_tree_node.hpp IPRadixEntry.h

TEST = test_ipset

check_PROGRAMS = test_ipset

test_ipset_SOURCES = 	../Multiplexer.cc  ../Protocol.cc \
			../Packet.cc ../IPAddress.cc \
			../FlowForwarder.cc ../FlowRegexEvaluator.cc \
			../Flow.cc ../Logger.cc \
			../AnomalyManager.cc ../ElapsedTime.cc \
			../StringCache.cc \
			../flow/FlowTable.cc \
			../flow/FlowManager.cc \
			../protocols/ethernet/EthernetProtocol.cc \
			../protocols/vlan/VLanProtocol.cc \
			../protocols/ip/IPProtocol.cc \
			../protocols/tcp/TCPProtocol.cc \
			../protocols/tcp/TCPInfo.cc \
			../protocols/ssl/SSLInfo.cc \
			../protocols/http/HTTPInfo.cc \
			../protocols/smtp/SMTPInfo.cc \
			../protocols/bitcoin/BitcoinInfo.cc \
			../protocols/udp/UDPProtocol.cc \
			../protocols/dns/DNSInfo.cc \
			../protocols/gprs/GPRSInfo.cc \
			../protocols/sip/SIPInfo.cc \
			../protocols/ssdp/SSDPInfo.cc \
			../protocols/coap/CoAPInfo.cc \
                        ../protocols/imap/IMAPInfo.cc \
                        ../protocols/pop/POPInfo.cc \
                        ../protocols/mqtt/MQTTInfo.cc \
                        ../protocols/netbios/NetbiosInfo.cc \
                        ../protocols/dhcp/DHCPInfo.cc \
                        ../protocols/smb/SMBInfo.cc \
                        ../protocols/dhcp6/DHCPv6Info.cc \
                        ../protocols/ssh/SSHInfo.cc \
                        ../protocols/dcerpc/DCERPCInfo.cc \
                        ../protocols/quic/QuicInfo.cc \
                        ../protocols/dtls/DTLSInfo.cc \
			../protocols/udpgeneric/UDPGenericProtocol.cc \
			../protocols/tcpgeneric/TCPGenericProtocol.cc \
			../protocols/frequency/Frequencies.cc \
			../protocols/frequency/PacketFrequencies.cc \
			../regex/RegexManager.cc \
			../regex/Regex.cc \
			IPAbstractSet.cc IPSet.cc IPRadixTree.cc \
			IPBloomSet.cc \
			IPSetManager.cc test_ipset.cc 

test_ipset_CPPFLAGS = $(EXTRA_TEST_CPPFLAGS) -I../ $(BOOST_CPPFLAGS) -DSTAND_ALONE_TEST
test_ipset_LDFLAGS   = $(EXTRA_TEST_LDFLAGS) 
test_ipset_LDADD   = $(BOOST_LDFLAGS) $(LOGGING_FLAGS) -lpthread -lboost_unit_test_framework -lboost_system -lpcre

CLEANFILES = *.o *.lo *.so

MAINTAINERCLEANFILES = \
        $(srcdir)/Makefile \
        $(srcdir)/Makefile.in \
        `rm -rf $(srcdir)/build `

